<?php defined('ByShopWWI') or exit('Access Invalid!');?>

<div class="wrap">
  <div class="tabmenu">
    <?php include template('layout/submenu');?>
  </div>
  <div class="ncm-default-form">
    <form method="post" id="recharge_form" action="index.php">
      <input type="hidden" name="form_submit" value="ok" />
      <input type="hidden" name="act" value="coin" />
      <input type="hidden" name="op" value="recharge_add" />
      <dl>
        <dt><i class="required">*</i>充值金额：</dt>
        <dd>
          <input name="pdr_amount" type="text" class="text w50" id="pdr_amount" maxlength="8"/><em class="add-on">
           <i class="icon-renminbi"></i></em><span></span>
        </dd>
      </dl>
      <dl class="bottom">
        <dt>&nbsp; </dt>
        <dd>
          <label class="submit-border"><input type="submit" class="submit" value="<?php echo $lang['nc_submit']; ?>" /></label>
        </dd>
      </dl>
    </form>
  </div>
</div>
<script type="text/javascript">
$(function(){
	$('#recharge_form').validate({
        errorPlacement: function(error, element){
            var error_td = element.parent('dd').children('span');
            error_td.append(error);
        },
        rules : {
        	pdr_amount      : {
	            required  : true,
	            digits    : true,
	            min       : 1
            }
        },
        messages : {
        	pdr_amount		: {
            	required  :'<i class="icon-exclamation-sign"></i>请填写充值金额',
            	digits    :'<i class="icon-exclamation-sign"></i>充值金额为大于或者等于1的整数',
                min    	  :'<i class="icon-exclamation-sign"></i>充值金额为大于或者等于1的整数'
            }
        }
    });
});
</script>